import { defineStore } from "pinia";
import { ref } from "vue";

const userStore = defineStore(
  "common",
  () => {
    const counter = ref(0);
    const isSend = ref(false); //发送请求显示加载
    const increment = () => {
      counter.value++;
    };
    return {
      counter,
      isSend,
      increment,
    };
  },
  {
    persist: true,
  }
);

export default userStore;
